﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FacturIT.Service.User
{
    public class UserDTO
    {
        private FacturIT.BLL.Model.User.User user;

        public UserDTO(FacturIT.BLL.Model.User.User user)
        {
            this.user = user;
        }
        public bool HasObject { get { return user != null; } }


        public int UserID
        {
            get
            {
                return user.UserID;
            }
            private set
            {
            }
        }
        public string Firstname
        {
            get
            {
                return user.Firstname;
            }
            private set
            {
            }
        }
        public string Lastname
        {
            get
            {
                return user.Lastname;
            }
            private set
            {
            }
        }

        public string Username
        {
            get
            {
                return user.Username;
            }
            private set
            {
            }
        }

        public string Fullname
        {
            get
            {
                return user.Lastname + " " + user.Firstname;
            }
            private set
            {
            }
        }


        public string Street
        {
            get
            {
                return user.Street;
            }
            private set
            {
            }
        }
        public string PostalCode
        {
            get
            {
                return user.PostalCode;
            }
            private set
            {
            }
        }
        public string City
        {
            get
            {
                return user.City;
            }
            private set
            {
            }
        }
        public string Country
        {
            get
            {
                return user.Country;
            }
            private set
            {
            }
        }
        public string UserPhone
        {
            get
            {
                return user.Phonenumber;
            }
            private set
            {
            }
        }
        public string Password
        {
            get
            {
                return user.Password;
            }
            private set
            {
            }
        }
    }
}